package jse;

import org.junit.Test;

/**
 * @desc   测试java假克隆
 * @author kanggw
 * @datetime 2016年4月6日,下午8:57:09
 */

public class Test20160406 {
	
	@Test
	public void test01() {
		
		Test20160406JavaClone clone = new Test20160406JavaClone("小明",22);
		System.out.println("克隆前:"+"\n"+clone);
		Test20160406JavaClone clone1 = clone;
		clone1.setName("大明");
		clone1.setAge(24);
		System.out.println("克隆后");
		System.out.println("clone"+clone);
		System.out.println("clone2"+clone1);
		
		
	}
}
